﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Project32CHE.Biz.Goods.Extend.Exceptions
{
    public class LowInventoryItem
    {
        public Guid GoodsId { get; set; }
        public Guid StorageId { get; set; }
        public decimal CurrentQuantity { get; set; }
    }
    public class LowInventoryException : Exception
    {
        public LowInventoryException(IEnumerable<LowInventoryItem> goodsItems)
        {
            this.GoodsItems = new List<LowInventoryItem>(goodsItems);
        }
        public LowInventoryException(params LowInventoryItem[] goodsItems)
        {
            this.GoodsItems = new List<LowInventoryItem>(goodsItems ?? new LowInventoryItem[0]);
        }
        public List<LowInventoryItem> GoodsItems { get; set; }
    }
}
